package com.wang.spring.basic_di.g_complexfield;

import com.wang.spring.annotation.AnnotationConfigApplication;
import com.wang.spring.basic_di.g_complexfield.bean.Person1;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AnnotationComplexFieldApplication {

    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext("com.wang.spring.basic_di.g_complexfield");
        Person1 person1 = ctx.getBean(Person1.class);
        System.out.println(person1);
    }
}
